//
//  Book.m
//  03-BookManageSystem
//
//  Created by mafeng on 16/7/6.
//  Copyright © 2016年 mafeng. All rights reserved.
//

#import "Book.h"

@implementation Book
- (instancetype)initWithName:(NSString *)bookName bookPrice:(NSNumber *)bookPrice {
    self = [super init];
    if (self) {
        _bookName = bookName;
        _bookPrice = bookPrice;
    }
    return self;
}
+ (instancetype)bookWithName:(NSString *)bookName bookPrice:(NSNumber *)bookPrice {
    return [[[Book alloc] initWithName:bookName bookPrice:bookPrice] autorelease];
}
@end
